package com.direct.ssh.domain;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.Table;


public class Role  implements java.io.Serializable {


    // Fields    
     private String id;
     private String name;
     private String remark;
     private Set powers = new HashSet(0);
     private Set emps = new HashSet(0);


    // Constructors

    /** default constructor */
    public Role() {
    }

    
    public Role(String id) {
		super();
		this.id = id;
	}


	/** full constructor */
    public Role(String name, String remark, Set powers, Set emps) {
        this.name = name;
        this.remark = remark;
        this.powers = powers;
        this.emps = emps;
    }

   
    // Property accessors

    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }

    public String getRemark() {
        return this.remark;
    }
    
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Set getPowers() {
        return this.powers;
    }
    
    public void setPowers(Set powers) {
        this.powers = powers;
    }

    public Set getemps() {
        return this.emps;
    }
    
    public void setemps(Set emps) {
        this.emps = emps;
    }
   
}



